<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>可复用的函数</title>
</head>
<body>
<script>
    //乘法运算函数
    function resultNum (num1,num2){
         let result = num1 * num2;
         return result;
    } 
    //调用函数,传入两个参数
   let results =  resultNum(10,10);
    console.log("结果:" + results);
</script> 
</body>
</html>